import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
// https://vitejs.dev/config/
export default defineConfig({
    base: '/cms-visual-editor/',
    build: {
        outDir: 'docs'
    },
    plugins: [
        vue({}),
        vueJsx({})
    ],
    resolve: {
        alias: {
            // 'plain-ui': 'plain-ui/src/index.ts'
        },
    },
    css: {
        preprocessorOptions: {
            scss: {
                additionalData: `@import "src/packages/styles/public.mixin.scss";@import "node_modules/plain-ui/src/styles/global-import.scss";`,
            }
        }
    }
})
